package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.ItemLogMapper;
import com.whq.entity.ItemLog;
import com.whq.service.ItemLogService;

@Service(value = "tdItemLogService")
public class ItemLogServiceImpl implements ItemLogService {

    @Autowired
    private ItemLogMapper<ItemLog>tdItemLogMapper;
    
    @Override
    public Integer insertSelective(ItemLog tdItemLog) throws Exception {
           return this.tdItemLogMapper.insertSelective(tdItemLog);
        }

    @Override
    public Integer insertBatch(List<ItemLog> tdItemLog) throws Exception {
           return this.tdItemLogMapper.insertBatch(tdItemLog) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdItemLogMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdItemLogMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(ItemLog tdItemLog) {
           return this.tdItemLogMapper.updateByPrimaryKeySelective(tdItemLog);
    }

    @Override
    public ItemLog findById(Object id) {
           return (ItemLog) this.tdItemLogMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<ItemLog> selectByCondition(ItemLog tdItemLog) {
           return (List<ItemLog>) this.tdItemLogMapper.selectByCondition(tdItemLog);
    }

    @Override
    public Integer selectCountByCondition(ItemLog tdItemLog) {
           return  this.tdItemLogMapper.selectCountByCondition(tdItemLog);
    }

}
